{include file="common/header.tpl"}
<body>
{include file="common/toptab.tpl"}
<script src="includes/js/request.js" type="text/javascript"></script>
<div class="wrap">
<table width="100%" height="100%" cellpadding="0" cellspacing="0">
	<tr>
	<td width="54px" height="43px" class="fr_lefttop"></td>
	<td height="43px" class="fr_centertop" ></td>
	<td width="48px" height="43px" class="fr_righttop"></td>
	</tr>
	<tr>
	<td width="54px" class="fr_leftmiddle" >&nbsp;</td>
	<td class="fr_centermiddle">
{if $smarty.cookies.message == null}
	<div id="ajaxResponse1" class="ajaxResponse"></div>
{else}
	<div id="ajaxResponse1" class="ajaxResponse fade" style="display:block">{if $smarty.cookies.message != NULL}{$smarty.cookies.message}{/if}</div>
{/if}
<h2>{t}REGISTER{/t}</h2>
	
	<table class="widefat">
		<thead>
		<tr>
			<th scope="col" style="text-align: center">{t}ID{/t}</th>
	        <th scope="col">{t}Name{/t}</th>
            <th scope="col">{t}Date of Birth{/t}</th>
            <th scope="col">{t}Email{/t}</th>
            <th scope="col">{t}information{/t}</th>
            <th scope="col">{t}Date register{/t}</th>
	        <th style="text-align: center">{t}Action{/t}</th>
		</tr>
		</thead>
		<tbody id="cattable">
			{foreach name=REGISTER from=$REGISTER.data item=item}
				<tr id="register-{$item->id}" class="{cycle values=,alternate}">
					<th scope='row' style='text-align: center'>{$item->id}</th>
					<td>{$item->name}</td>
                    <td>{$item->dob}</td>
                    <td>{$item->email}</td>
                    <td>{$item->information}</td>
                    <td>{$item->send_date}</td>
                   	<td><a onClick="onDeleteRegister('?mod={$smarty.get.mod}','{$item->id}', 'register')" 
								class='delete'>{t}Delete{/t}</a></td>
				</tr>
			{/foreach}
		</tbody>
	</table>
    {if $REGISTER.TOTALPAGE > '1' }
    <div>			
             		
              <div style="text-align:right; float:right" >{$REGISTER.FIRST} {$ALLCATS.PRE}&nbsp;{$REGISTER.LISTPAGE}  {if $smarty.session.LC_ALL eq "en"}Pages{else}Trang{/if} &nbsp; {$REGISTER.TOTALPAGE} &nbsp;                   
                  &nbsp;{$REGISTER.NEXT} {$REGISTER.LAST}         
              </div>
              <div style="clear:both"></div>		
    </div>	     
    {/if}
    
</td>
<td width="48px" class="fr_rightmiddle"></td>
</tr>
<tr>
<td width="54px" height="60px" class="fr_leftbot" ></td>
<td height="60px" class="fr_centerbot"></td>
<td width="48px" height="60px" class="fr_rightbot" ></td>
</tr>
</table>
</div>
</body>
</html>
